home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / video / vdev.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  928 b   |  47 lines

  1. /*
  2.  * Copyright (C) 1990-1992 by Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #ifndef    VDEV_H
  15. #define    VDEV_H
  16.  
  17. struct    vdevinit
  18. {
  19.     char    *name;
  20.     int        (*probe)();
  21.     int        (*init)();
  22. };
  23. extern struct vdevinit vdevsw[];
  24.  
  25. /*
  26.  * video device configuration
  27.  */
  28.  
  29. struct vdev
  30. {
  31.     char    *v_name;
  32.     void    *v_modes;
  33.     int    (*v_init)();
  34.     void    (*v_reset)();
  35.     int    (*v_setmode)();
  36.     void    (*v_setpalette)();
  37.     void    (*v_clear)();
  38.     void    (*v_putpixels8)();
  39.     void    (*v_putpixels24)();
  40.     void    (*v_puttext)();
  41. };
  42.  
  43. typedef struct vdev    vdev_t;
  44.  
  45.  
  46. #endif    /* VDEV_H */
  47.